package com.leyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.entity.Category;
import com.leyou.entity.CategoryAndBrand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryAndBandMapper extends BaseMapper<CategoryAndBrand> {

    @Select("select tb_category_brand.category_id from tb_category_brand where brand_id=#{id}")
    List<Long> findCategoryIdsByBrandId(@Param("id") Long id);
}
